package com.selen.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author Selen
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(name = "RoleUpdateDTO", description = "角色修改DTO")
public class RoleUpdateDTO implements Serializable {

    /**  主键  */
    @NotNull(message = "主键不能为空")
    @Schema(description = "主键", example = "1")
    private Long id;

    /**  角色名称  */
    @Schema(description = "角色名称", example = "程序员")
    private String title;

    /**  角色描述  */
    @Schema(description = "角色描述", example = "代码编写")
    private String info;



}